class DiscountStatM {
  DiscountStatM({
    required this.depositStatus,
    required this.depositAmount,
    required this.balanceAmount,
    required this.giftBalanceAmount,
    required this.integralAmount,
  });

  DiscountStatM.fromJson(dynamic json) {
    depositStatus = json['deposit_status'] ?? 0;
    depositAmount = json['deposit_amount'] ?? 0;
    balanceAmount = json['balance_amount'] ?? 0;
    giftBalanceAmount = json['gift_balance_amount'] ?? 0;
    integralAmount = json['integral_amount'] ?? 0;
  }
  late num depositStatus;
  late num depositAmount;
  late num balanceAmount;
  late num giftBalanceAmount;
  late num integralAmount;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['deposit_status'] = depositStatus;
    map['deposit_amount'] = depositAmount;
    map['balance_amount'] = balanceAmount;
    map['gift_balance_amount'] = giftBalanceAmount;
    map['integral_amount'] = integralAmount;
    return map;
  }
}

class FinanceStatM {
  FinanceStatM({
    required this.countCoupons,
    required this.countCards,
  });

  FinanceStatM.fromJson(dynamic json) {
    countCoupons = json['count_coupons'] ?? 0;
    countCards = json['count_cards'] ?? 0;
  }
  late num countCoupons;
  late num countCards;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['count_coupons'] = countCoupons;
    map['count_cards'] = countCards;
    return map;
  }
}
